package com.ts.animal.domain;

import com.alibaba.fastjson.JSON;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 接收基站发送的原始数据
 *
 * @author bobby
 * @email bobby@126.com
 * @date 2020-06-06 10:36:06
 */
public class BaseStationHeartBeatOriginalDataDO implements Serializable {
    private static final long serialVersionUID = 1L;
    //设备号
    private String no;
    //签名时间戳
    private String sgm;
    //数据签名值
    private String sg;
    //数据
    private String da;
    //数据 转换为数组
    private BaseStationHeartBeatOriginalDataDO.Da daObject;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getNo() {
        return no;
    }

    public void setNo(String no) {
        this.no = no;
    }

    public String getSgm() {
        return sgm;
    }

    public void setSgm(String sgm) {
        this.sgm = sgm;
    }

    public String getSg() {
        return sg;
    }

    public void setSg(String sg) {
        this.sg = sg;
    }

    public String getDa() {
        return da;
    }

    public void setDa(String da) {
        this.da = da;
        setDaObject(JSON.parseObject(da, Da.class));
    }

    public BaseStationHeartBeatOriginalDataDO.Da getDaObject() {
        return daObject;
    }

    public void setDaObject(BaseStationHeartBeatOriginalDataDO.Da daObject) {
        this.daObject = daObject;
    }

    public static class Da implements Serializable {

        //2.4G天线状态  2.4G天线状态#{-1：不支持；0：不正常；1：正常；2：未知}，多个天线以英文逗号隔开
        private String g24;
        //GPS天线状态#{-1：不支持；0：不正常；1：正常；2：未知}'
        private String gps;
        //4G模块状态#{-1：不支持；0：不正常；1：正常；2：未知}'
        private String gsm;
        //WIFI模块状态#{-1：不支持；0：不正常；1：正常；2：未知}'
        private String wlan;
        //有线网口状态#{-1：不支持；0：不正常；1：正常；2：未知}'
        private String lan;
        //市电源状态#{-1：不支持；0：不正常；1：正常；2：未知}'
        private String power;
        //市电源电压,浮点数据
        private String powerVol;
        //基站电池状态#{-1：不支持；0：不正常；1：正常；2：未知}
        private String battery;
        //基站电池电量
        private String elec;

        public String getG24() {
            return g24;
        }

        public void setG24(String g24) {
            this.g24 = g24;
        }

        public String getGps() {
            return gps;
        }

        public void setGps(String gps) {
            this.gps = gps;
        }

        public String getGsm() {
            return gsm;
        }

        public void setGsm(String gsm) {
            this.gsm = gsm;
        }

        public String getWlan() {
            return wlan;
        }

        public void setWlan(String wlan) {
            this.wlan = wlan;
        }

        public String getLan() {
            return lan;
        }

        public void setLan(String lan) {
            this.lan = lan;
        }

        public String getPower() {
            return power;
        }

        public void setPower(String power) {
            this.power = power;
        }

        public String getPowerVol() {
            return powerVol;
        }

        public void setPowerVol(String powerVol) {
            this.powerVol = powerVol;
        }

        public String getBattery() {
            return battery;
        }

        public void setBattery(String battery) {
            this.battery = battery;
        }

        public String getElec() {
            return elec;
        }

        public void setElec(String elec) {
            this.elec = elec;
        }
    }

}
